     function queryCataLogForm(pageIndex,pageSize)
     {
          var url =base+"/pageCatalogList.do?pageIndex="+pageIndex+"&pageSize="+pageSize;
          var params =jQuery("#queryForm").serialize();
          params=decodeURIComponent(params,true); 
          jQuery("#pageCatalogContent").load(url+"&"+ encodeURI(encodeURI(params)));
     }


     function gotoPage(pageSize)
     {
        var pageIndex =jQuery("#pageIndex").val();
        queryCataLogForm(pageIndex,pageSize);
     }


     function toEditCatalog(catalogId)
     {
       var url =base + "/toEditCatalog.do?catalogId="+catalogId;
       openWin(url);
     }

     function toAddCataLog()
     {
       var url=base + "/toAddCatalog.do";
       openWin(url);
     }

     function openWin(url)
     {
           jQuery.layer({
           type: 2,
           border: [0],
           title: false,
           shadeClose: true,
           closeBtn: true,
           iframe: {src : url},
           area: ['400px' , '175px'],
           close: function(index){ 
                   queryDownLoadForm(1,15);
          }
          }); 
     }


 function savePageCatalog()
{  
         jQuery("#pageCatalogForm").ajaxSubmit(
           {
              type:"post",
              clearForm: true,        // 是否清空form  
              resetForm: true,       // 是否重置form  
              success:function()
              {
                  //alert("保存成功!"); 
                  window.parent.queryCataLogForm(1,10);
                  closeWin();

              }
           }
          );
}


